export default {
    mounted(el, binding) {
        let timeout = null;
        el.addEventListener('click', () => {
            if (!timeout) {
                timeout = setTimeout(() => {
                    timeout = null;
                }, parseInt(binding.value) || 300); // 默认防抖时间为300ms，也可以通过参数传入
            }
        });
    }
};